/* ================================
 * This is the non-working example.
 * ================================
 * The problem seems to be iterator in the template, which colides with the 
 * ItemView - Collection - Model
 * paradigm presented in the Marionette programming model.
 */
define( [
		'module',
		'backbone',
		'marionette',
		'text!templates/footnote.html', 
		],
function( module, Backbone, Marionette, ItemHTML ) {
	console.log("Loading module " + module.id + " from " + module.uri + "...");

	var Footnote = Backbone.Marionette.ItemView.extend({
//		template: "#row-template",
		template: undefined,
		className:"footnote",
		tagName:"div",
//		el: "#footnote",

		initialize: function() {
			console.log("FootNote: initialize - entry");
			this.template = _.template(ItemHTML)
		},
		/* get the template from external file, do not polute
		 * the main page with template snippets
		 */
	});

	return Footnote;
});
